package com.design.pattern.abstraceFactory;

import com.design.pattern.abstraceFactory.ingredient.NYpizzaIngredientFactory;
import com.design.pattern.abstraceFactory.ingredient.PizzaIngredientFactory;

public class NYPizzaStore extends PizzaStore {
    Pizza createPizza() {
        PizzaIngredientFactory pizzaIngredientFactory = new NYpizzaIngredientFactory();
        Pizza pizza = new CheesePizza(pizzaIngredientFactory);
        pizza.setName("New York Style Cheese Pizza");
        return pizza;
    }
}